package com.telink.lt.ui

import android.util.Log
import com.telink.lt.BuildConfig


class LogUtil {

    companion object{

        private const val TAG = "日志"

        fun d(content:Any){
            e(TAG,content)
        }

        fun d(tag:String,content:Any){
            if (BuildConfig.DEBUG) {
                Log.d(tag, content as String)
            }
        }

        @JvmStatic
        fun e(content:Any){
            e(TAG,content)
        }

        fun e(tag:String,content:Any){
            if (BuildConfig.DEBUG) {
                Log.e(tag, content as String)
            }
        }


    }
}